package com.xiang.pojo;

//统一返回实体类
public class ResultVo {
    private int code;//状态码   0失败 1成功
    private String msg;//消息   比如: 新增成功或者删除成功
    private Object data;//响应的数据  获取到的数据封装到data数据中

    public ResultVo() {
    }

    public ResultVo(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
